<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
             
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html>
  <head>
    <base href="<%=basePath%>"> 
    
    <title></title>
    
    <link rel="stylesheet" type="text/css" href="css/top.css" ></link>
	<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
	<script>
	 function out(){
		 if(confirm('确定要退出吗')){
				window.location.href="AdminServlet.do?flag=out";
				}
	 }
	$(function(){
		//var date = new Date();
		//alert($("#div_date").html());
		//alert(date .getHours()+":"+date .getMinutes()+":"+date .getSeconds());
		window.setInterval(function (){
			 $.ajax({
				 url:"AdminServlet.do",
				 type:"POST",
				 data:{flag:"date"},
				 success:function(data){
					 $("#div_date").html(data);
				 },
			});
			/*var date = new Date();
			var a = new Array("日", "一", "二", "三", "四", "五", "六");   
			var strWeek = "星期"+ a[date.getDay()]; 
			var str=[date.getHours(),date .getMinutes(),date .getSeconds()];
			
			for(var i=0;i<str.length;i++){
				if(parseInt(str[i])<10){
					str[i]="0"+str[i];
				}
			}
			var strTime=str.join(":");
			var str=date.getFullYear()+"-"+(parseInt(date.getMonth())+1)+"-"+date.getDate()+" "+strWeek+" "+strTime;*/
			
		},100)
		
	});
	</script>
	
	
	
	
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	
	
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
      <table id="t_head">
		   		<tr>
		   			<td id="td1" ></td>
		   			<td id="td2">&nbsp;</td>
		   			<td id="td3">
		   				<a id="td3_a1"  target="centerFrame" href="admin/password_edit.jsp"><img src="images/btn_head_bg1.jpg"/>修改密码</a>
		   				<a  target="centerFrame" href="admin/admin_info.jsp"><img src="images/btn_head_bg1.jpg"/>用户信息</a>
		   				<a href="javascript:out()"><img src="images/btn_head_bg1.jpg"/>退出系统</a>
		   			</td>
		
		   		</tr>
		   </table>
			<table id="t_bar" >
					<tr>
							<td id="bar_td1"></td>
							<td id="bar_td2">
								<div id="div_date">日期</div>
							</td>
							
						<td id="bar_td3">
							 商城后台管理系统</td>
					
					</tr>
			</table>
			<table id="t_title">
					<tr>
							<td id="title_td1">
									<img src="images/main_28.gif"/>
							</td>	
							<td id="title_td2"><img src="images/main_29.gif" /></td>	
							<td id="title_td3"><img src="images/main_30.gif" /></td>	
							<td id="title_td4">&nbsp;
									<label class="admininfo">当前登录用户: ${session_admin.adminName} 用户状态  : 正常
								</label>
							</td>	
							<td id="title_td5"><img src="images/main_32.gif" /></td>
					</tr>
			</table>
  </body>
</html>